package demo;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * Author:  LiuTao
 * Version: 1.0
 * Date:    2023-10-31  11:12
 */
public class Rectangle extends Shape{
    float reLong = 0;
    float reWide = 0;

    public Rectangle(float reLong, float reWide) {
        this.reLong = reLong;
        this.reWide = reWide;
    }

    @Override
    void getArea() {
        System.out.println(reLong*reWide);
    }
}
